/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.tms.module.statementorder.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.math.BigDecimal;

/**
 * 结算单实体类
 *
 * @author Blade
 * @since 2022-03-03
 */
@Data
@TableName("tm_statement_order")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "StatementOrder对象", description = "预结算单")
public class TMStatementOrder extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	private Long id;
	/**
	 * 运单ID
	 */
	@ApiModelProperty(value = "运单ID")
	private Long parentId;
	/**
	 * 运费
	 */
	@ApiModelProperty(value = "运费")
	private BigDecimal money;

	/**
	 * 费用类型
	 */
	@ApiModelProperty(value = "费用类型")
	private String chargeType;
	/**
	 * 费用类型描述
	 */
	@ApiModelProperty(value = "费用类型描述")
	private String chargeText;
	/**
	 * 父单据类型
	 */
	@ApiModelProperty(value = "父单据类型")
	private String orderType;
	/**
	 * 结算单号
	 */
	@ApiModelProperty(value = "结算单号")
	private String no;
	/**
	 * 过账状态
	 */
	@ApiModelProperty(value = "过账状态")
	private String fsdPost;
	/**
	 * 币别
	 */
	@ApiModelProperty(value = "币别")
	private String docCurrency;
	/**
	 * 承运商编号
	 */
	@ApiModelProperty(value = "承运商编号")
	private String carrierNo;
	/**
	 * 失败原因
	 */
	@ApiModelProperty(value = "失败原因")
	private String reason;
	/**
	 * 结算单行项目id
	 */
	@ApiModelProperty(value = "结算单行项目id")
	private String itemId;
	/**
	 * 上传凭证
	 */
	@ApiModelProperty(value = "上传凭证")
	private String uploadVoucher;

    @ApiModelProperty("合同公司")
    private String contractCompany;

    @ApiModelProperty("是否暂存")
    private Boolean staging;


}
